<template>
  <div class="section">
    <div class="header">
        <h2 class="title">{{ title }}</h2>
    </div>
    <div class="content">
        <slot>
            <h2>我是默认内容</h2>
        </slot>
    </div>
    <div class="footer">
        <span class="more">
            {{ more }}
            <van-icon name="arrow" />
        </span>
        
    </div>
  </div>
</template>

<script setup>
defineProps({
    title:{
        type:String,
        default:'房屋设施'
    },
    more:{
        type:String,
        default:'查看全部内容'

    }
})
</script>

<style lang="less" scoped>
.section {
    padding: 0 15px;
    margin-top: 12px;
    background-color: #fff;

    .header {
      height: 50px;
      line-height: 50px;
      border-bottom: 1px solid #eee;

      .title {
        font-size: 20px;
        color: #333;
      }
    }

    .content {
      padding: 8px 0;
    }

    .footer {
      display: flex;
      justify-content: flex-end;
      height: 44px;
      line-height: 44px;
      color: #ff9645;
      font-size: 14px;
      font-weight: 600;
    }
  }
</style>